x86: Allow dom0 to write MSR IA32_ENERGY_PERF_BIAS
authorKeir Fraser <keir@xen.org>
Wed, 5 Jan 2011 09:52:18 +0000 (09:52 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 5 Jan 2011 09:52:18 +0000 (09:52 +0000)
commit1693185272d9f4d71135f21ab443b5cd8fdfad48
tree0079e3f558a72133508139e94d0c53d7ce15faac
parentac05bf03bce4a5c0cf54625f96524f550bac1b8b
x86: Allow dom0 to write MSR IA32_ENERGY_PERF_BIAS

Allow dom0 to write MSR IA32_ENERGY_PERF_BIAS

There is a new hardware feature, which lets system software to set
Energy Performance Preference. This is a opaque knob in the form of
IA32_ENERGY_PERF_BIAS MSR, which has a 4 bit Energy Performance
Preference Hint.

The support for this feature is indicated by CPUID.06H.ECX.bit3. Refer
to Intel Architectures Software Developer's Manual for more info.

Let dom0 tools to control it.

Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/arch/x86/traps.c
xen/include/asm-x86/msr-index.h